import { useRouter } from "vue-router"

export const useComon = () => {
    const router = useRouter()
    const gotowhere = (path) => {
        router.push(path)
    }
    const goback = () => {
        router.go(-1)
    }
    return{
        gotowhere,
        goback
    }
}